
#include "BizUtils.h"
#include "utils.h"
#include "JsonParse.h"
#include "CondNotice.h"

void parseFromPreference()
{
   String timerActionJson = getPreferenceString("timerAction");
   String config = getPreferenceString("config");

   String localCondNoticeJson = getPreferenceString("condNotice");
   Serial.println("timeAction:");
   Serial.println(timerActionJson);

   if (!parseTimerActionString(timerActionJson))
   {
      Serial.println("解析timerAction失败");
   }
   if (!parseConfig(config))
   {
      Serial.println("解析 config 失败");
   }
   if (!parseCondNotice(localCondNoticeJson))
   {
      Serial.println(" 解析本地通知数据失败localCondNoticeJson");
   }
}